package com.daz.mysql.repository.entity.food;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.context.annotation.Bean;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description 食物分类表
 * @author dingazheng
 * @since 2024/06/29
 */
@TableName("food_category")
@Data
public class FoodCategoryDO implements Serializable {

    private static final long serialVersionUID = 6536945414945235431L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分类名称
     */
    @TableField("name")
    private String name;

    /**
     * 分类描述
     */
    @TableField("description")
    private String description;

    /**
     * 分类排序
     */
    @TableField("order")
    private Integer order;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modify")
    private LocalDateTime gmtModify;
}
